package com.go.dp.strategy.two;

public class Test {

	public static void main(String[] args) {
		Cat[] cats = { new Cat(5, 5), new Cat(3, 3), new Cat(2, 2) };
		Sortor.print(Sortor.sort(cats));

		Comparator comparator2 = new CatWeightComparator();
		Cat[] cats2 = { new Cat(5, 5, comparator2), new Cat(3, 3, comparator2),
				new Cat(2, 2, comparator2) };
		Sortor.print(Sortor.sort(cats2));
	}
}
